<template>
	<view>
		<view >
			<web-view @message="headlemessage"
				:src="'https://usersshop.chacha123.net/post_supplier/index.html?app_token='+ app_token + '&market='+ market + '&supplier_id=' + supplier_id"></web-view>
		</view>

	</view>
</template>

<script>
	import {
		BASE_URL
	} from "@/config/app";
	import {
		toLogin
	} from "@/libs/login";
	import {
		mapGetters
	} from "vuex";
	const common = require('@/mixins/common');
	var options = {};
	common(options);
	export default {
		mixins: [{
			methods: options
		}],
		computed: mapGetters(["isLogin", "app_token"]),
		data() {
			return {
				img_url: BASE_URL,
				navH: '',
				theme_color: getApp().globalData.theme_color,
				market: getApp().globalData.market,
				supplier_id: getApp().globalData.supplier_id
			}
		},
		onLoad() {
			this.navH = getApp().globalData.navHeight / 2;
			if (!this.isLogin) {
				toLogin()
			}
		},
		methods: {
			headlemessage(e) {
				console.log('headlemessage------')
				console.log(e)

			},
		}
	}
</script>

<style lang="scss" scoped>
</style>